package com.zkt.subject.domain.convert;

import com.zkt.subject.domain.entity.SubjectCategoryBO;
import com.zkt.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/9/30
 * @description 题目分类的实体类型转换器
 **/

@Mapper
public interface SubjectCategoryConverter {
	
	SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);
	
	SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);
	
	List<SubjectCategoryBO> convertCategoryToBo(List<SubjectCategory> subjectCategoryList);
	
	List<SubjectCategoryBO> convertListBoToCategory(List<SubjectCategory> subjectCategoryList);
}
